//
//  UIButton+GEE_fastInit.m
//  KX11UI
//
//  Created by HYC on 2021/3/1.
//

#import "UIButton+HYC_Tools.h"

@implementation UIButton (HYC_Tools)
- (UIButton *(^)(CGRect T)) H_frame {
    return ^id(CGRect T){
        self.frame = T;
        return self;
        };
}
- (UIButton *(^)(UIView * T)) H_addSubViewFoSuper {
    return ^id(UIView * T){
        [T addSubview:self];
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_text_State:(UIControlState)state {
    return ^id(NSString * T){
        [self setTitle:T forState:state];
        return self;
        };
}
- (UIButton *(^)(UIFont *T)) H_Font {

    return ^id(UIFont *T){
        self.titleLabel.font = T;
        return self;
        };
}
- (UIButton *(^)(UIColor * T)) H_backgroundColor {
    
    return ^id(UIColor * T){
        self.backgroundColor = T;
        return self;
        };
}
//- (UIButton *(^)(NSString * T)) H_textColorStr {
//    return ^id(NSString * T){
//        [self setTitleColor:T.color forState:0];
//        return self;
//        };
//}
- (UIButton *(^)(UIColor * T)) H_textColor {
    
    return ^id(UIColor * T){
        [self setTitleColor:T forState:0];
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_text {
    return ^id(NSString * T){
        [self setTitle:T forState:0];
        return self;
        };
}
- (UIButton *(^)(UIImage * T)) H_Image {
    return ^id(UIImage * T){
        [self setImage:T forState:0];
        return self;
        };
}
- (UIButton *(^)(UIColor * T)) H_sele_tColor {
    
    return ^id(UIColor * T){
        [self setTitleColor:T forState:UIControlStateSelected];
        return self;
        };
}
- (UIButton *(^)(NSString * T)) H_sele_text {
    return ^id(NSString * T){
        [self setTitle:T forState:UIControlStateSelected];
        return self;
        };
}
- (UIButton *(^)(UIImage * T)) H_sele_Image {
    return ^id(UIImage * T){
        [self setImage:T forState:UIControlStateSelected];
        return self;
        };
}




@end
